﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Workflow.ComponentModel.Design;
using BPM.Base.WFLib.GuideForm;

namespace BPM.Base.WFLib.Designer
{
  public   class CallWorkflowDesigner : ActivityDesigner
    {

        protected override System.Collections.ObjectModel.ReadOnlyCollection<DesignerAction> DesignerActions
        {
            get
            {
                List<DesignerAction> list = new List<DesignerAction>();
                foreach (DesignerAction temp in base.DesignerActions)
                {
                    list.Add(new DesignerAction(this, temp.ActionId, temp.Text));
                }
                return list.AsReadOnly();
            }
        }

        protected override ActivityDesignerVerbCollection Verbs
        {
            get
            {
                ActivityDesignerVerbCollection NewVerbs = new ActivityDesignerVerbCollection();
                NewVerbs.AddRange(base.Verbs);
                ActivityDesignerVerb menu7 = new ActivityDesignerVerb(this, DesignerVerbGroup.View, "设置", new EventHandler(menu7_click));
                NewVerbs.Add(menu7);
                return NewVerbs;
            }
        }


        private void menu7_click(object sender, EventArgs e)
        {

            using (ChildWorkflowForm wf = new ChildWorkflowForm(this))
            {



                wf.ShowDialog();
            }


        }


    }


}
